package org.nch.videoLauncher.view;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: bill
 * Date: Dec 30, 2008
 * Time: 8:44:34 PM
 * To change this template use File | Settings | File Templates.
 */
public class ImagePanel extends JPanel {

    private Image img;

    public ImagePanel (Image img){
        this.img = img;
        Dimension size = new Dimension(50, 50);
        setSize(size);
        setPreferredSize(size);
        setMinimumSize(size);
        setMaximumSize(size);
        setLayout(null);

    }

    public void pointComponent(Graphics g){
        g.drawImage(img, 0, 0, null);
    }

}
